class ClientMidi
{
  
  MidiBus myBus;
  

  ClientMidi(PApplet mom)
  {
      println("Start Client MIDI");
      MidiBus.list();
      myBus = new MidiBus(mom, -1, "p551");
  }
  
  void send(int ch, float freq, float vel)
  {
      if((int)freq==-1) return;
      myBus.sendNoteOff(ch, (int)freq, (int)vel);
      myBus.sendNoteOn(ch, (int)freq, (int)vel);
      
      // for tones
      //myBus.sendNoteOff(ch, (int)freq, (int)vel);
  }
  
  
  
  
  
}
